<?php
$ssFilter = $this->arrParam['ssFilter'];
		$lang = $ssFilter['lang'];
		if($lang == ''){
			$lang = 'vi';
		}else{
			$lang = $ssFilter['lang'];
		}
		
echo $this->blkBreadcumb(array(
			'Trang chủ'=> array(
					'module'	=>'default',
					'controller'=>'index',
					'action'	=>'index',
					'router'	=> 'home',
					'params'	=> array(
									'lang'=>$lang
								)
				),
			'Thực Đơn'=> array(
					'module'	=>'products',
					'controller'=>'index',
					'action'	=>'index',
					'router'	=>'products',
					'params'	=> array(
									'lang'=>$lang
								)
				),
			str_replace("\\"," ",$this->Item['name'])=> array(
					'module'	=>'products',
					'controller'=>'index',
					'action'	=>'detail',
					'router'	=>'products-detail',
					'params'	=> array(
									'lang' =>$lang,
									'title'=> str_replace("\\"," ",$this->Item['name']),
									'id'   => $this->Item['id']
								)
				),
			
		));
?>
<div class="clear"></div>
<div class="detail">
<?php
if(!empty($this->Item)){ 
		$item = $this->Item;
		$cutTring 	= new Zendvn_File_CutTring();
		$title 		= $item['name'];
		$title 		= str_replace("\\"," ",$title);
		$alt		= $item['name'];
		if(!empty($item['alt_seo'])) $alt = $item['alt_seo'];
		$alt 		= str_replace("\\"," ",$alt);
							
		$summary 	= $item['summary'];
        $summary 	= str_replace("\\"," ",$summary);
		$summary 	= $cutTring->cutTring(100,$summary,null);
		
		$realLink	= FILES_PATH.'/products/images450x450/' . $item['picture'];
		if(file_exists($realLink)){
		    $linkImg	= FILES_URL . '/products/images450x450/' . $item['picture'];
		    $picture 	= '<img title="'. $title .'" src="'. $linkImg .'" width="110" alt="'.$alt.'" />';
		}else{
			
		    $linkImg	= $this->imgUrl . '/no-image.jpg';
		    $picture 	= '<img title="'. $title .'" src="'. $linkImg .'" width="110" alt="'.$alt.'" />';
		}
		$content 	= $item['content'];
		$content 	= str_replace("\\"," ",$content);
		
		$urlAddToCart = array('module'=>'default',
								'controller'=>'index',
								'action'=>'ajax-add-to-cart',
								'id'=>$item['id'],
								
                   			);
        $linkAddtoCart = $this->url($urlAddToCart,'default');
?>

<div class="box width-100 mar-bottom-20">
                             <div class="cnt-box">
                                   <!--------- Noi dung--------->
                                    <div class="box-cnt width-100">
                                        <!--------- Tieu de bai viet--------->
                                        <div class="title width-100">
                                            <h2><a href="#" title="5 nhom thuc pham"><?php echo $title?></a></h2>
                                        </div>
                                        <!--------- Tieu de bai viet(end)--------->

                                        <!--------- Hinh anh - Tom tat--------->
                                        <div class="bor-img width-30 float-left">
                                            <a href="#"><?php echo $picture?></a>
                                            <div class="text-price"><p><?php  echo number_format($item['price'],0)?> VNĐ</p></div>
                                        </div>

                                        <div class="desc summary width-65 float-right">
                                            <p><?php echo $summary?></p>
                                        </div>

                                        <div class="add-cart width-30 float-left mar-top-20 clear mar-bottom-20">
                                                <span class="float-left">Số lượng : </span>
                                                <input type="text" id="count-number" size="1" value="1" class="float-left">
                                                <a href="#" onclick="datHang2('#ajax-reload-menu','<?php echo $linkAddtoCart?>');"  title="Thêm vào" class="bg-brown">Thêm vào</a>
                                        </div>
                                        <!--------- Hinh anh - Tom tat(end)--------->
                                        <div class="clear"></div>
                                        <div class="line-white"></div>
                                        <!--------- noi dung bai viet--------->
                                        <div class="desc width-100 mar-top-20">

                                            <?php echo $content?>
                                        </div>
                                        <!--------- noi dung bai viet(end)--------->

                                  </div>
                                   <!---------Noi dung(end)-------->
                             </div>
                         </div>
                         <?php } // end if?>
                         </div>